/**
 * Created by xuchaosheng on 16/5/22.
 */
main.controller('entryCtrl', ["$scope", "$rootScope", "$location", "tools", function ($scope, $rootScope, $location, tools) {
    $scope.newPage = function () {
        $rootScope.$broadcast('NEW_PAGE_EV', {title: '', content: ''});
    };
    $scope.toPages = function () {
        $location.url('/pages');
    };
    $scope.toDbManager = function () {
        $location.url('/dbManager');
    };
    $scope.toPriceMonitor = function () {
        $location.url('/priceMonitor');
    }
    $scope.toSysManager = function () {
        $location.url('/sysManager');
    }
}]);